package com.qqin.mapper;

import com.qqin.pojo.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressMapper {
    List<Address> selectAll();
    Address selectById(Integer addressId);
    List<Address> selectByUser(Integer userId);
    List<Address> selectByAny(Address address);
//This method adds an address to the list of addresses
    void add(Address address);
    void updateById(Address address);
    void deleteById(Integer addressId);

}
